#include "MainFight.h"
#include "cocos-ext.h"
#include "PostMsg.h"
#include "CPublicFuns.h"
#include "define.h"
//#include "HelloWorldScene.h"
#include "cocostudio/CocoStudio.h" 
#include "audio/include/SimpleAudioEngine.h"
//#include "MainFrame.h"
//#include "MainLine.h"
#include "PvP.h"

using namespace cocostudio::timeline;


Scene* CPvP::createScene()
{
	// 'scene' is an autorelease object
	auto *scene = Scene::create();

	// 'layer' is an autorelease object
	auto *layer = CPvP::create();

	// add layer as a child to scene
	scene->addChild(layer);

	// return the scene

	return scene;
}

// on "init" you need to initialize your instance
bool CPvP::init()
{
	//////////////////////////////
	// 1. super init first
	if ( !CCLayer::init() )
	{
		return false;
	}

	//CMainFrame::CreateBackBtn(this);

	return true;
}